home *** CD-ROM | disk | FTP | other *** search
/ Champak 141 / (Vol 141) Oct 17 2011.iso / Games / flight-of-the-museum.swf / scripts / com / google / analytics / debug / _Style.as next >
Encoding:
Text File  |  2011-10-17  |  2.6 KB  |  75 lines

  1. package com.google.analytics.debug
  2. {
  3.    import flash.net.URLLoader;
  4.    import flash.text.StyleSheet;
  5.    
  6.    public class _Style
  7.    {
  8.        
  9.       
  10.       public var failureColor:uint;
  11.       
  12.       public var borderColor:uint;
  13.       
  14.       public var backgroundColor:uint;
  15.       
  16.       private var _sheet:StyleSheet;
  17.       
  18.       public var roundedCorner:uint;
  19.       
  20.       public var warningColor:uint;
  21.       
  22.       public var infoColor:uint;
  23.       
  24.       public var alertColor:uint;
  25.       
  26.       public var successColor:uint;
  27.       
  28.       private var _loader:URLLoader;
  29.       
  30.       private var _defaultSheet:String;
  31.       
  32.       public function _Style()
  33.       {
  34.          super();
  35.          _sheet = new StyleSheet();
  36.          _loader = new URLLoader();
  37.          _init();
  38.       }
  39.       
  40.       private function _parseSheet(data:String) : void
  41.       {
  42.          _sheet.parseCSS(data);
  43.       }
  44.       
  45.       public function get sheet() : StyleSheet
  46.       {
  47.          return _sheet;
  48.       }
  49.       
  50.       private function _init() : void
  51.       {
  52.          _defaultSheet = "";
  53.          _defaultSheet += "a{text-decoration: underline;}\n";
  54.          _defaultSheet += ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n";
  55.          _defaultSheet += ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  56.          _defaultSheet += ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  57.          _defaultSheet += ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  58.          _defaultSheet += ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  59.          _defaultSheet += ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  60.          _defaultSheet += ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  61.          _defaultSheet += ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  62.          _defaultSheet += "\n";
  63.          roundedCorner = 6;
  64.          backgroundColor = 13421772;
  65.          borderColor = 5592405;
  66.          infoColor = 16777113;
  67.          alertColor = 16763904;
  68.          warningColor = 13369344;
  69.          successColor = 65280;
  70.          failureColor = 16711680;
  71.          _parseSheet(_defaultSheet);
  72.       }
  73.    }
  74. }
  75.